
import React from 'react';
import type {Node} from 'react';
import Navigation from './src/navigations'
import {Provider as AntProvider} from '@ant-design/react-native'
import { Provider as ReduxProvider } from 'react-redux'
import store from './src/store'
import {
  StatusBar,
  useColorScheme,
  View,
} from 'react-native';

import {
  Colors
} from 'react-native/Libraries/NewAppScreen';



const App: () => Node = () => {
  const isDarkMode = useColorScheme() === 'dark';

  const backgroundStyle = {
    backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
  };

  return (
    <View style={{...backgroundStyle, ...{flex: 1}}}>
      <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
     
      <AntProvider>
        <ReduxProvider store={store}>
          <Navigation />
        </ReduxProvider>
      </AntProvider>
      
    </View>
  );
};

export default App;
